FROM tomcat:8

RUN cp -r /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps

ADD output/*  /usr/local/tomcat/webapps/

RUN cp -r /usr/local/tomcat/webapps/vulns /usr/local/tomcat/webapps/ROOT/ && rm -rf /usr/local/tomcat/webapps/vulns

EXPOSE 8080

CMD ["catalina.sh", "run"]
